package com.aliyun.demo.wenxin.controller;

import com.aliyun.demo.wenxin.entity.Category_;
import com.aliyun.demo.wenxin.service.Category_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * (Category_)表控制层
 *
 * @author version
 * @since 2020-07-31 21:24:56
 */
@RestController
@RequestMapping("category_")
public class Category_Controller {
    /**
     * 服务对象
     */
    @Autowired
    private Category_Service category_Service;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Category_ selectOne(Integer id) {
        return this.category_Service.queryById(id);
    }

}